
#pragma once

#include "type.h"
#include "equipment.h"


class Unit;
class FrameAnimation;
class GameScene;

class Bullet {
public:    
	static float GRAVITY;

	Bullet(const EquipmentAttribute* attr);
	virtual ~Bullet();

    virtual void init();
    virtual bool update(float ticks);

public:
    int id;

	const EquipmentAttribute* bulletAttribute;

	float speed;

    CCPoint src;
    CCPoint dst;
    CCPoint position;

	FrameAnimation *animation;
	CCSprite* sprite;

private:

};
